package com.heatingcharge.mapper.charge;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heatingcharge.dto.ArrearsDTO;
import com.heatingcharge.dto.ChargeInfoDTO;
import com.heatingcharge.dto.ZoneClearOffDTO;
import com.heatingcharge.entity.charge.ChargeInfo;
import com.heatingcharge.entity.charge.ClearOff;
import com.heatingcharge.param.SearchParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author devin.jiang
 * @since 2019-10-17
 */
@Component
public interface ClearOffMapper extends BaseMapper<ClearOff> {
//    @SqlParser(filter=true)
    ZoneClearOffDTO selectAllZonesStatistics(@Param("query") SearchParam searchParam);
    List<ArrearsDTO> selectZonesArreas(@Param("query") SearchParam searchParam);
    List<ArrearsDTO> selectBuildingsArreas(@Param("query") SearchParam searchParam);
    List<ArrearsDTO> selectUnitssArreas(@Param("query") SearchParam searchParam);
}
